<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://commnuity.wanqing.com/tag/toolbar" prefix="tool" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache"); 
response.setDateHeader("Expires", 0);  
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html> 
<head>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/> 
<meta http-equiv="expires" content="0"/>  
<title>显示组织树Frame</title>
<jsp:include page="../../../common/easyui-css.inc"></jsp:include>
<link rel="stylesheet" type="text/css" href="css/tree.css"/>
<style type="text/css"> 
  body, html,#map_canvas {width: 100%;height: 100%;overflow: hidden;margin:0;}
</style>
</head>
<body class="easyui-layout"> 
<div id="map_canvas" style="overflow:auto">
   <div id="toolbar" class="datagrid-toolbar" style="height: auto;display: none;">    
   <form method="post" id="siteForm">
		<div style="border-bottom:solid 1px #ccc;">
	    	<table cellspacing="1">
	     		<tr>
	     			<td width="20px;"></td>
	     			<td width="60px;" align="right">角色名称：</td>
	     			<td>
	     				<input type="text" style="width:150px;height:22px;" class="input" name="roleName" id="roleName" />
	     			</td>
		     		<td width="200px;" align="left">
			           <a class="easyui-linkbutton" iconcls="icon-search" plain="false" id="search">查询</a>                 
			        </td>   
	     		</tr>
	     	</table>   
        </div>         
	</form>
	<tool:bar menuId="${param.m_id}"></tool:bar>	
   </div>
<table id="roles"></table>
</div>
<div id="roleWin" class="easyui-window" style="width: 450px; height: 200px;" data-options="iconCls:'icon-win-depart',closed:true,modal:true,collapsible:false,minimizable:false">
   <div style="margin: 5px 5px 5px 5px;">
   <form name="roleForm" id="roleForm" method="post">  	
	<table class="table_save" width="100%" cellspacing="1" cellpadding="1" border="0">	
	<tr>
		<td class="td_save" style="width: 20px;text-align: right;">角色名称：</td>
		<td style="width: 80px">
			<input type="text" name="roleName" id="roleName" class="input easyui-validatebox"  data-options="required:true"/><br/>
		</td>			
	</tr>
	<tr>
		<td class="td_save" style="width: 20px;text-align: right;">描述：</td>
		<td style="width: 80px">
			<input type="text" name="remarks" id="remarks" class="input" /><br/>
		    <input type="hidden" name="roleId" id="roleId">		    
		</td>			
	</tr>		
  </table> 
</form>
</div>
<div id="dlg-buttons" style="text-align: right;margin-top: 10px;margin-right: 20px;"> 
    <a id="add_save" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-save">保存</a> 
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#roleWin').window('close')" iconcls="icon-cancel">取消</a> 
</div>
</div>
<div id="authorWin"></div>
</body>
<jsp:include page="../../../common/easyui-js.inc"></jsp:include>
<script type="text/javascript" src="pages/sys/role/listRole.js?v=<%=Math.random() %>"></script>
</html>